/*
 * CS_UPDATE_MY_PROFILE.cpp
 *
 *  Created on: 2013. 6. 20.
 *      Author: the2
 */

#include "../../Command.h"
#include "../../User.h"
#include "../../Proxy.h"
#include "../../../../protocol/iFriends.h"

namespace ProjectZ { namespace NCommand {

void Command::CS_UPDATE_MY_PROFILE(User * pUser, ::Network::Packet * pPacket)
{
	PREPARE_PACKET;
	UpdateProfileSyn msg;
	char birthday[12] = {'\0'};

	pPacket->ParseMsg("%c%c%s%c%c", &msg.gender, &msg.is_gender_open, birthday, &msg.is_birthday_open, &msg.is_profile_open);

	msg.birthday = birthday;
	DEBUGLOG("생일=%s", msg.birthday.c_str());

	::ProjectZ::NProxy::SendFriendsServer(pUser->GetUserSeq(), msg);
}

} /*NCommand*/ } /*ProjectZ*/


